package com.amxing.spider.task.support;

/**
 * @auther amxing
 * @desc
 * @createTime 2018/10/22 23:18
 */
public interface HttpTask {

    String DEFAULT_URL_KEY = "DEFAULT_URL_KEY";

    String DEFAULT_RESULT_KEY = "DEFAULT_RESULT_KEY";

    String DEFAULT_STATUS_KEY = "DEFAULT_STATUS_KEY";

    String getUrl();

    default boolean isMultiTask() {
        return false;
    }

    default boolean hasNextPage() {
        return false;
    }

    default String getNextPageUrl() {
        return "";
    }

}
